//
//  RHDefine.swift
//  RongHeWoJia_Swift
//
//  Created by shanyiyuan on 2020/10/18.
//  Copyright © 2020 苏州蜜巢计算机系统有限公司. All rights reserved.
//

import Foundation
import UIKit

func AppDelegateEntity()-> AppDelegate{
    
    let shareApplication = UIApplication.shared.delegate as! AppDelegate
    
    return shareApplication
}

func classWithString(className:String)->AnyObject{
    
    let nameSpace = Bundle.main.infoDictionary!["CFBundleExecutable"] as! String
    
    let classObj:AnyObject = NSClassFromString(nameSpace + "." + className)!

    return classObj
}
